import React, {Component} from 'react';
import './index.less';
import configTableCreate from '../../../src/components/ConfigTable';
import Model from './Model';
import Action from './Action';
import {render, bindModel, bindAction} from 'react-division';

bindModel({
    projectListM: Model
});
bindAction({
    projectListA: Action
});

const ConfigTable = configTableCreate({
    modelName: 'projectListM',
    actionName: 'projectListA'
});

export default render({
    models: ['projectListM'],
    actions: ['projectListA']
})((props) => {

    const {action} = props;

    return (
        <ConfigTable 
            operation={[{
                label: '编辑',
                onClick: action.projectListA.editRow,
                visible: true
            }]}
        />
    );

});